package com.xdtech.forum.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-03-06 11:06:23
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="FORUM_LINK_TAG")
public class LinkTag extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	
	public LinkTag()
	{
		super();
	}
	
	
	public LinkTag(String name, String type, String linkUrl, String iconUrl)
	{
		super();
		this.name = name;
		this.type = type;
		this.linkUrl = linkUrl;
		this.iconUrl = iconUrl;
	}


	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="NAME")
	private String name;
	@Column(name="TYPE")
	private String type;
	@Column(name="LINK_URL")
	private String linkUrl;
	@Column(name="ICON_URL")
	private String iconUrl;

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setLinkUrl(String linkUrl) {
		this.linkUrl = linkUrl;
	}
	public String getLinkUrl() {
		return linkUrl;
	}
	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}
	public String getIconUrl() {
		return iconUrl;
	}
}
